import matplotlib.pyplot as plt
import numpy as np

flg=plt.figure()
plt.subplot(1,1,1)
N=3
values=(12,14,3)
index=np.arange(N)
width=0.2
p2=plt.bar(index,values,width,label="rainfall",color="#87CEFA")
plt.xlabel("type")
plt.ylabel("numbers")
plt.title("people hobby")
plt.xticks(index, ('study','sport','writting'))
plt.yticks(np.arange(0,81,16))
plt.show()
            
